﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.Entitys;

/// <summary>
/// 检验批实体.
/// </summary>
[SugarTable("qms_busi_ipqcinspectionlot", "检验批")]
[Tenant(ClaimConst.TENANTID)]
public class QmsBusiIpqcinspectionlotEntity : CLDEntityBase
{
    /// <summary>
    /// 检验批号.
    /// </summary>
    [SugarColumn(ColumnName = "F_Code", ColumnDescription = "检验批号")]
    public string Code { get; set; }

    /// <summary>
    /// 报检单号.
    /// </summary>
    [SugarColumn(ColumnName = "F_InspectionCode", ColumnDescription = "报检单号")]
    public string InspectionCode { get; set; }

    /// <summary>
    /// 检验日期.
    /// </summary>
    [SugarColumn(ColumnName = "F_Date", ColumnDescription = "检验日期")]
    public DateTime? Date { get; set; }

    /// <summary>
    /// 报检类型(字典项：业务类型:默认制程检).
    /// </summary>
    [SugarColumn(ColumnName = "F_Type", ColumnDescription = "报检类型(字典项：业务类型:默认制程检)")]
    public string Type { get; set; }

    /// <summary>
    /// 检验类型：抽检（C）巡检（X）首检（S）.
    /// </summary>
    [SugarColumn(ColumnName = "F_InspectType", ColumnDescription = "检验类型：抽检（C）巡检（X）首检（S）")]
    public string InspectType { get; set; }

    /// <summary>
    /// ⽣产建模: ⻋间、班组、⼯段、⼯位 任选其⼀即可.
    /// </summary>
    [SugarColumn(ColumnName = "F_WorkshopId", ColumnDescription = "⽣产建模: ⻋间、班组、⼯段、⼯位 任选其⼀即可")]
    public string WorkshopId { get; set; }

    /// <summary>
    /// ⽣产建模: ⻋间、班组、⼯段、⼯位 任选其⼀即可.
    /// </summary>
    [SugarColumn(ColumnName = "F_TeamId", ColumnDescription = "⽣产建模: ⻋间、班组、⼯段、⼯位 任选其⼀即可")]
    public string TeamId { get; set; }

    /// <summary>
    /// ⽣产建模: ⻋间、班组、⼯段、⼯位 任选其⼀即可.
    /// </summary>
    [SugarColumn(ColumnName = "F_WorkshopSectionId", ColumnDescription = "⽣产建模: ⻋间、班组、⼯段、⼯位 任选其⼀即可")]
    public string WorkshopSectionId { get; set; }

    /// <summary>
    /// ⽣产建模: ⻋间、班组、⼯段、⼯位 任选其⼀即可.
    /// </summary>
    [SugarColumn(ColumnName = "F_StationId", ColumnDescription = "⽣产建模: ⻋间、班组、⼯段、⼯位 任选其⼀即可")]
    public string StationId { get; set; }

    /// <summary>
    /// ⾮必输，从物料所属的⼯艺路线中下拉选择⼯序，可以多选.
    /// </summary>
    [SugarColumn(ColumnName = "F_ProcessIdList", ColumnDescription = "⾮必输，从物料所属的⼯艺路线中下拉选择⼯序，可以多选")]
    public string ProcessIdList { get; set; }

    /// <summary>
    /// 物料.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialCode", ColumnDescription = "物料")]
    public string MaterialCode { get; set; }

    /// <summary>
    /// ⽣产订单号.
    /// </summary>
    [SugarColumn(ColumnName = "F_OrderNo", ColumnDescription = "⽣产订单号")]
    public string OrderNo { get; set; }

    /// <summary>
    /// ⽣产数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_ProductionQty", ColumnDescription = "⽣产数量")]
    public int? ProductionQty { get; set; }

    /// <summary>
    /// 检验员.
    /// </summary>
    [SugarColumn(ColumnName = "F_EmployeeCode", ColumnDescription = "检验员")]
    public string EmployeeCode { get; set; }

    /// <summary>
    /// 检验员名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_EmployeeName", ColumnDescription = "检验员名称")]
    public string EmployeeName { get; set; }

    /// <summary>
    /// 备注.
    /// </summary>
    [SugarColumn(ColumnName = "F_Remark", ColumnDescription = "备注")]
    public string Remark { get; set; }

    /// <summary>
    /// 状态：0 未检验  1检验中 2检验完成 3已过帐 4 关闭.
    /// </summary>
    [SugarColumn(ColumnName = "F_Status", ColumnDescription = "状态：0 未检验  1检验中 2检验完成 3已过帐 4 关闭")]
    public int? Status { get; set; }

    /// <summary>
    /// 关闭原因.
    /// </summary>
    [SugarColumn(ColumnName = "F_CloseDes", ColumnDescription = "关闭原因")]
    public string CloseDes { get; set; }

    /// <summary>
    /// 关闭时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_CloseDate", ColumnDescription = "关闭时间")]
    public DateTime? CloseDate { get; set; }

    /// <summary>
    /// OK NG.
    /// </summary>
    [SugarColumn(ColumnName = "F_JudgeStatus", ColumnDescription = "OK NG")]
    public string JudgeStatus { get; set; }

    /// <summary>
    /// 0 不合格 1合格.
    /// </summary>
    [SugarColumn(ColumnName = "F_UdNo", ColumnDescription = "0 不合格 1合格")]
    public int? UdNo { get; set; }

    /// <summary>
    /// 使用决策子项.
    /// </summary>
    [SugarColumn(ColumnName = "F_Decision", ColumnDescription = "使用决策子项")]
    public string Decision { get; set; }

    /// <summary>
    /// 使用决策子项名字.
    /// </summary>
    [SugarColumn(ColumnName = "F_DecisionName", ColumnDescription = "使用决策子项名字")]
    public string DecisionName { get; set; }

    /// <summary>
    /// 破坏性数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_DestructivenessQty", ColumnDescription = "破坏性数量")]
    public int? DestructivenessQty { get; set; }

    /// <summary>
    /// 接收数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_ReceiveQty", ColumnDescription = "接收数量")]
    public int? ReceiveQty { get; set; }

    /// <summary>
    /// 使用决策备注.
    /// </summary>
    [SugarColumn(ColumnName = "F_DecisionDesc", ColumnDescription = "使用决策备注")]
    public string DecisionDesc { get; set; }

    /// <summary>
    /// 0 未逾期 1 已逾期.
    /// </summary>
    [SugarColumn(ColumnName = "F_Overdue", ColumnDescription = "0 未逾期 1 已逾期")]
    public int? Overdue { get; set; }

    /// <summary>
    /// 开始时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_StartTime", ColumnDescription = "开始时间")]
    public DateTime? StartTime { get; set; }

    /// <summary>
    /// 结束时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_EndTime", ColumnDescription = "结束时间")]
    public DateTime? EndTime { get; set; }

    /// <summary>
    /// 物料文件信息.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialFile", ColumnDescription = "物料文件信息")]
    public string MaterialFile { get; set; }

    /// <summary>
    /// 检卡文件信息.
    /// </summary>
    [SugarColumn(ColumnName = "F_CheckCardFile", ColumnDescription = "检卡文件信息")]
    public string CheckCardFile { get; set; }


}